package com.ztgf.order.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * author: chenyu.wang
 * date: 2020-06-28 17:06
 * Description: 订单商品VO
 */
@Data
public class OrderCommodityItemVO implements Serializable {

    @ApiModelProperty(value = "订单商品关系表id")
    private Long orderItemId;

    @ApiModelProperty(value = "商品主图")
    private String logUrl;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commdityPrice;

    @ApiModelProperty(value = "商品编号")
    private String commodityNumber;
}
